package cc.rengu.redp.flowable.bizmodel.db.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 业务模型配置表
 *
 * @author System
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("T_BIZ_CFG_MODEL")
public class BizCfgModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MODEL_ID")
    private Long modelId;

    /**
     * 业务数据模型名称
     */
    @TableField("MODEL_NAME")
    private String modelName;

    /**
     * 数据访问权限类型
     */
    @TableField("AUTH_TYPE")
    private String authType;

    /**
     * 授权角色列表
     */
    @TableField("AUTH_ROLES")
    private String authRoles;

    /**
     * 授权部门列表
     */
    @TableField("AUTH_DEPTS")
    private String authDepts;

    /**
     * 固定字段
     */
    @TableField("AUTH_FIXED_FIELD")
    private String authFixedField;

    /**
     * 插件路径
     */
    @TableField("AUTH_PLUGIN_PATH")
    private String authPluginPath;

    @TableField(exist = false)
    private List<BizCfgField> fieldData;
}
